Make docs more generic
authorEduardo Bautista <me@eduardobautista.com>
Sun, 7 Sep 2014 04:38:28 +0000 (23:38 -0500)
committerEduardo Bautista <me@eduardobautista.com>
Sun, 7 Sep 2014 04:38:28 +0000 (23:38 -0500)
src/doc/source/guide.md
src/doc/source/index.md
src/doc/source/manifest.md
src/doc/source/native-build.md

index a57df78b49dee1f927107647bb866f3bf383ba09..13d99f54cde2731c4a3e56cf7098e581b729c754 100644 (file)
@@ -57,7 +57,7 @@ This is all we need to get started. First, let's check out `Cargo.toml`:
 
 name = "hello_world"
 version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
 ```
 
 This is called a **manifest**, and it contains all of the metadata that Cargo
@@ -75,7 +75,7 @@ Cargo generated a 'hello world' for us. Let's compile it:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo build
 <span style="font-weight: bold"
-class="s1">   Compiling</span> hello_world v0.0.1 (file:///Users/wycats/src/hello_world)</code></pre>
+class="s1">   Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
 
 And then run it:
 
@@ -88,7 +88,7 @@ We can also use `cargo run` to compile and then run it, all in one step:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo run
 <span style="font-weight: bold"
-class="s1">   Fresh</span> hello-world v0.0.1 (file:///Users/wycats/src/hello_world)
+class="s1">   Fresh</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold"
 class="s1">   Running</span> `target/hello_world`
 Hello world!</code></pre>
@@ -111,7 +111,7 @@ $ cd color-rs
 To build, just use `cargo build`:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo build
-<span style="font-weight: bold" class="s1">   Compiling</span> color v0.0.1 (file:///Users/wycats/src/color-rs)</code></pre>
+<span style="font-weight: bold" class="s1">   Compiling</span> color v0.0.1 (file:///path/to/project/color-rs)</code></pre>
 
 This will fetch all of the dependencies and then build them, along with the
 project.
@@ -125,7 +125,7 @@ To depend on a library, add it to your `Cargo.toml`.
 
 name = "hello-world"
 version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
 
 [dependencies.color]
 
@@ -159,7 +159,7 @@ Compile it:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo run
 <span style="font-weight: bold" class="s1">   Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
-<span style="font-weight: bold" class="s1">   Compiling</span> hello-world v0.0.1 (file:///Users/wycats/src/hello_world)
+<span style="font-weight: bold" class="s1">   Compiling</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold" class="s1">     Running</span> `target/hello_world`
 Converting RGB to HSV!
 HSV: HSV { h: 0, s: 1, v: 1 }</code></pre>
@@ -218,7 +218,7 @@ on another project:
 
 name = "hello_world"
 version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
 
 [dependencies.color]
 
@@ -258,7 +258,7 @@ manifest like this:
 
 name = "hello_world"
 version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
 
 [dependencies.color]
 
@@ -333,13 +333,13 @@ building your package, it will use the override on your local machine
 instead of the source specified in your `Cargo.toml`.
 
 Cargo looks for a directory named `.cargo` up the directory hierarchy of
-your project. If your project is in `/Users/wycats/src/conduit-static`,
+your project. If your project is in `/path/to/project/conduit-static`,
 it will search for a `.cargo` in:
 
-* `/Users/wycats/src/conduit-static`
-* `/Users/wycats/src`
-* `/Users/wycats`
-* `/Users`
+* `/path/to/project/conduit-static`
+* `/path/to/project`
+* `/path/to`
+* `/path`
 * `/`
 
 This allows you to specify your overrides in a parent directory that
@@ -353,7 +353,7 @@ your code directory or in your home directory).
 Inside that file, put this:
 
 ```
-paths = ["/Users/wycats/src/conduit"]
+paths = ["/path/to/project/conduit"]
 ```
 
 This array should be filled with directories that contain a `Cargo.toml`. In
@@ -377,7 +377,7 @@ To run your tests, just run `cargo test`:
 <span style="font-weight: bold"
 class="s1">   Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
 <span style="font-weight: bold"
-class="s1">   Compiling</span> hello-world v0.0.1 (file:///Users/wycats/src/hello_world)
+class="s1">   Compiling</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold"
 class="s1">     Running</span> target/test/hello_world-9c2b65bbb79eabce
 
index cbc627326ccb1d46bd20e93b87104f39248603a3..c599fef2160e16c99027a1d8740a09c11e1a8f5d 100644 (file)
@@ -50,7 +50,7 @@ This is all we need to get started. First, let's check out `Cargo.toml`:
 
 name = "hello_world"
 version = "0.0.1"
-authors = ["Yehuda Katz <wycats@example.com>"]
+authors = ["Your Name <you@example.com>"]
 ```
 
 This is called a **manifest**, and it contains all of the metadata that Cargo
@@ -68,7 +68,7 @@ Cargo generated a 'hello world' for us. Let's compile it:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo build
 <span style="font-weight: bold"
-class="s1">   Compiling</span> hello_world v0.0.1 (file:///Users/wycats/src/hello_world)</code></pre>
+class="s1">   Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
 
 And then run it:
 
@@ -81,7 +81,7 @@ We can also use `cargo run` to compile and then run it, all in one step:
 
 <pre><code class="highlight"><span class="gp">$</span> cargo run
 <span style="font-weight: bold"
-class="s1">   Fresh</span> hello-world v0.1.0 (file:///Users/wycats/src/hello_world)
+class="s1">   Fresh</span> hello-world v0.0.1 (file:///path/to/project/hello_world)
 <span style="font-weight: bold"
 class="s1">   Running</span> `target/hello_world`
 Hello world!</code></pre>
index 9e70b598801cef81f2d351c74d26e3cd66797490..10ae987c69a7caf4abd7d754d19a634967443663 100644 (file)
@@ -10,7 +10,7 @@ The first section in a `Cargo.toml` is `[package]`.
 [package]
 name = "hello-world" # the name of the package
 version = "1.0.0"    # the current version, obeying semver
-authors = [ "wycats@example.com" ]
+authors = [ "you@example.com" ]
 ```
 
 All three of these fields are mandatory. Cargo bakes in the concept of
index 5c637194986b258193442550b676e9f046f2e7e5..8f3739ed95daa9b22311beff2f3f9e49fd560e32 100644 (file)
@@ -15,7 +15,7 @@ configuration option.
 
 name = "hello-world-from-c"
 version = "0.1.0"
-authors = [ "wycats@gmail.com" ]
+authors = [ "you@example.com" ]
 build = "make"
 ```
 
@@ -91,7 +91,7 @@ program.
 
 name = "hello-world-from-c"
 version = "0.1.0"
-authors = [ "wycats@gmail.com" ]
+authors = [ "you@example.com" ]
 build = "make -C build"
 ```